﻿using Microsoft.AspNetCore.Http;
using SXFramWork.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace SXFramWork.Model
{
	/// <summary>
	/// 系统配置添加模型
	/// </summary>
    public class ConfigAddModel
    {
        public string FileUrl { get; set; }
       public IFormFile file { get; set; }
        /// <summary>
        /// 系统名称
        /// </summary>
        public string SystemName { get; set; }
        /// <summary>
        /// 系统简介
        /// </summary>
        public string SystemIntroduction { get; set; }
        /// <summary>
        /// 域名
        /// </summary>
        public string DomainName { get; set; }
        /// <summary>
        /// logo路径
        /// </summary>
        public string Logo { get; set; }
        public string Company { get; set; }
        public string Adress { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        /// <summary>
        /// ICP备案号
        /// </summary>
        public string ICPRecordNum { get; set; }
        /// <summary>
        /// 公安备案号
        /// </summary>
        public string PSRecordNum { get; set; }

        //-------------------------

        /// <summary>
        /// 文件服务器
        /// </summary>
        public FileServer Server { get; set; } = FileServer.Localhost;

        /// <summary>
        /// 文件保存目录 默认存wwwroot
        /// </summary>
        public string FilePath { get; set; } = "upload";
        /// <summary>
        /// 文件类型
        /// </summary>
        public string Ext { get; set; }

        //-------------------
        /// <summary>
        /// SMTP服务器
        /// </summary>
        public string SMTPIP { get; set; }
        /// <summary>
        /// SSl加密连接
        /// </summary>
        public bool ISSSLEncrypt { get; set; } = true;

        /// <summary>
        /// SMTP端口
        /// </summary>
        public string SMTPPort { get; set; }
        /// <summary>
        /// 发送人邮箱ip地址
        /// </summary>
        public string SendMailAdress { get; set; }
        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string MailPwd { get; set; }
        /// <summary>
        /// 邮箱账号
        /// </summary>
        public string MailUserName { get; set; }
        /// <summary>
        /// 发件人昵称
        /// </summary>
        public string NickName { get; set; }
        //----------------------

        /// <summary>
        /// 短信API地址
        /// </summary>
        public string APIAdress { get; set; }
        /// <summary>
        /// 平台登录账户
        /// </summary>
        public string LoginUserName { get; set; }
        /// <summary>
        /// 平台通信密钥
        /// </summary>
        public string SecretKey { get; set; }

    }
}
